package models;

import javax.persistence.Entity;
import javax.persistence.Transient;

import play.data.validation.Max;
import play.data.validation.Min;
import play.data.validation.Required;
import play.db.jpa.Model;

@Entity
public class Calidad extends Model{
	@Required
	public String nombre;
	@Required
	@Min(1)
	public int pasadas;
	@Required
	@Min(0)
	@Max(100)
	public float incremento;
	@Transient
	public String descripcion;
	public boolean deleted;
	
	public String getDescripcion() {
		return nombre + " " +"-"+ " "+ pasadas + " " + "pasadas";
	}
}
